package com.zhangyj.entitis;

import com.zhangyj.util.Tools;

public class Menutree extends BaseBeen{

	private static final long serialVersionUID = -9050627530695448440L;
	private Integer menuid;
	private String menuname;
	private Integer programid;
	private Integer menuTemplateId;
	private String catcode;
	private int pmenuid;
	private int sort;

	public Integer getMenuid() {
		return menuid;
	}

	public void setMenuid(Integer menuid) {
		this.menuid = menuid;
	}

	public String getMenuname() {
		return menuname;
	}

	public void setMenuname(String menuname) {
		this.menuname = Tools.htmlEncode(menuname).toString();
	}

	public Integer getProgramid() {
		if (programid == null) {
			return new Integer(0);
		}
		return programid;
	}

	public void setProgramid(Integer programid) {
		this.programid = programid;
	}

	public String getCatcode() {
		return catcode;
	}

	public void setCatcode(String catcode) {
		if (catcode != null) {
			catcode = catcode.trim();
		}
		this.catcode = catcode;
	}

	public Integer getMenuTemplateId() {
		return menuTemplateId;
	}

	public void setMenuTemplateId(Integer menuTemplateId) {
		this.menuTemplateId = menuTemplateId;
	}

	public int getPmenuid() {
		return pmenuid;
	}

	public void setPmenuid(int pmenuid) {
		this.pmenuid = pmenuid;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}
	
}